import {
    createRouter,
    createWebHashHistory
  } from 'vue-router'
  import HomePage from '@/views/HomePage.vue'
  
  const routes = [
    {
      path: '/',
      name: 'HomePage',
      component: HomePage
    },
    {
      path: '/axios',
      name: 'AxiosPage',
      component: () => import('@/views/AxiosPage.vue') // 懒加载组件
    },
    {
      path: '/AboutUs',
      name: 'AboutUs',
      component: () => import('@/views/AboutUs.vue') // 懒加载组件
    },
    {
      path: '/CooperationExchange',
      name: 'CooperationExchange',
      component: () => import('@/views/CooperationExchange.vue') // 懒加载组件
    }
  ]
  
  const router = createRouter({
    history: createWebHashHistory(),
    routes
  })
  
  export default router